Frequency Array Function